home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / xdme_1.84_src.lha / XDME / Src / globals.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-22  |  3.5 KB  |  112 lines

  1.  
  2. /*
  3.  * $Id: globals.c 1.2 1994/09/14 20:47:04 digulla Exp digulla $
  4.  *
  5.  * $Log: globals.c $
  6.  * Revision 1.2  1994/09/14  20:47:04  digulla
  7.  * moved version string to about.c
  8.  *
  9.  * Revision 1.1  1994/08/14  12:30:15  digulla
  10.  * Initial revision
  11.  *
  12.  *
  13.  */
  14.  
  15. #include "defs.h"
  16. #include <libraries/nofrag.h>
  17. #undef DBase
  18.  
  19. Prototype LIST        DBase;
  20. Prototype ED      * Ep;
  21. Prototype struct Config default_config;
  22. Prototype struct GlobalFlags globalflags;
  23. Prototype long        Nsu;
  24. Prototype UBYTE     CtlC;
  25. Prototype UBYTE     Current[MAXLINELEN];
  26. Prototype UBYTE     Deline[MAXLINELEN];
  27. Prototype UBYTE     Space[32];
  28. Prototype Column    Clen;
  29. Prototype UBYTE   * Partial;
  30. Prototype UBYTE   * esc_partial;
  31. Prototype UBYTE   * String;
  32. Prototype UWORD     ColumnPos[MAXLINELEN];
  33. Prototype UWORD     RowPos[MAXROWS];
  34. Prototype UWORD     Xsize;
  35. Prototype UWORD     Ysize;
  36. Prototype UWORD     XTbase;
  37. Prototype UWORD     YTbase;
  38. Prototype UWORD     Lines;
  39. Prototype UWORD     Columns;
  40. Prototype UWORD     Xbase;
  41. Prototype UWORD     Ybase;
  42. Prototype UWORD     Xpixs;
  43. Prototype UWORD     Ypixs;
  44. Prototype UWORD     LineDistance;
  45. Prototype UBYTE   * av[];
  46. Prototype WORD        PageJump;
  47. Prototype UBYTE     RexxPortName[8];
  48. Prototype UBYTE     tmp_buffer[MAXLINELEN];
  49. Prototype UWORD     NumClicks;
  50. //Prototype ULONG     MacroRecord;
  51.  
  52. /* Prototype struct IntuitionBase * IntuitionBase; */
  53. /* Prototype struct GfxBase      * GfxBase; */
  54. Prototype struct Library       * IconBase;
  55. Prototype struct Library       * AslBase;
  56. Prototype struct DosLibrary    * DOSBase;
  57. Prototype struct WBStartup     * Wbs;
  58.  
  59. struct NoFragBase * NoFragBase;
  60.  
  61. ED  * Ep;            /* Current Editor            */
  62. struct Config default_config;    /* Config-struct with default config    */
  63. LIST  DBase;            /* Doubly linked list of Files        */
  64.  
  65. UBYTE    Deline[MAXLINELEN];    /* last deleted line            */
  66. UBYTE    Current[MAXLINELEN];    /* Current Line buffer and length    */
  67. UBYTE    Space[32] = { 32,32,32,32, 32,32,32,32, 32,32,32,32, 32,32,32,32,
  68.               32,32,32,32, 32,32,32,32, 32,32,32,32, 32,32,32,32 };
  69.  
  70. Column    Clen;            /* Length of actual line */
  71. UBYTE  * Partial;        /* Partial command for communication w/ CF_PAR    */ /* PATCH_NULL change in function */
  72. UBYTE  * esc_partial;        /* Partial command line when executing ESCIMM    */ /* PATCH_NULL added */
  73. UBYTE  * String;        /* String Capture variable            */
  74.  
  75. UWORD  ColumnPos[MAXLINELEN];    /* Offset to a specific Position on screem */
  76. UWORD  RowPos[MAXROWS];
  77.  
  78. UWORD  Xsize,  Ysize;        /* font character sizes            */
  79. UWORD  Lines,  Columns;     /* character rows/cols available       */
  80. UWORD  Xbase,  Ybase;        /* offset pixel base for display       */
  81. UWORD  XTbase, YTbase;        /* used for text display           */
  82. UWORD  Xpixs,  Ypixs;        /* actual Right/Bottom pixels. Directly
  83.                    usable in RectFill() or ScrollRaster () */
  84. UWORD  LineDistance = 1;    /* empty space that goes between two lines
  85.                    of text on the screen */
  86.  
  87. UBYTE * av[8];            /* Argument-array */
  88.  
  89. struct WBStartup     * Wbs;    /* Startup-Message from WB */
  90.  
  91. WORD   PageJump;        /* Amount in % for page/prop. gadget */
  92.  
  93. UBYTE RexxPortName[8];        /* Name of ARexx-Port */
  94.  
  95. UBYTE tmp_buffer[256];        /* This is a global buffer to prevent unusual
  96.                    stack-usage. DON'T CALL SUBROUTINES WHILE
  97.                    HOLDING IMPORTANT DATA IN IT ! */
  98.  
  99. UWORD  NumClicks;        /* number of button-presses within double-
  100.                    clicktime */
  101. //ULONG MacroRecord;
  102.  
  103. long    Nsu;            /* Used to disable screen updates. If != 0,
  104.                    we must not do any updates */
  105.  
  106. /* Flags */
  107.  
  108. struct GlobalFlags globalflags;
  109.  
  110. UBYTE    CtlC;        /* Keycode for 'c'                              */
  111.  
  112.